package com.wondertek.web.controller.message;

import com.wondertek.common.base.Result;

import com.wondertek.service.service.business.AlarmDeviceService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/dh/message/callBackUrl")
@RequiredArgsConstructor
@Tag(name = "接收数据推送的接⼝")
public class CallBackController {
    @Resource
    private AlarmDeviceService alarmDeviceService;


    @PostMapping("/receiveMessages")
    @Operation(summary = "消息接收")
    public Result<?> receiveMessages(@RequestBody Object object) {
        return alarmDeviceService.receiveMessages(object);
    }
}
